x = eval(input("输入用户的本月通话时长"))
y = eval(input("输入用户的本月短信条数"))
z = eval(input("输入用户的本月数据流量"))
jichu=58
th = dx = ll =0
if x>250:
   th=(x-250)*0.25
if y>100:
   dx=(y-100)*0.1
if z>50:
   ll=(z-50)*0.3
g=th + dx + ll +58
print("话费总额为:{}".format(g))